package model.dao;

import java.util.List;

import model.bo.Article;

public interface IArticleDAO {

	// property constants
	public static final String TITLE = "title";

	public static final String CONTENT = "content";

	public static final String AUTHOR = "author";

	public abstract void save(Article transientInstance);

	public abstract void delete(Article persistentInstance);

	public abstract Article findById(java.lang.Integer id);

	public abstract List findByExample(Article instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByTitle(Object title);

	public abstract List findByContent(Object content);

	public abstract List findByAuthor(Object author);

	public abstract List findAll();

	public abstract Article merge(Article detachedInstance);

	public abstract void attachDirty(Article instance);

	public abstract void attachClean(Article instance);

}